package com.mall.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.domain.dto.SearchForm;
import com.mall.domain.po.UserRole;
import com.mall.domain.vo.UserRoleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    // UserRoleMapper.java
    Page<UserRoleVO> getUserList(
            Page<UserRoleVO> page,
            @Param("searchForm") SearchForm searchForm // 直接传递查询条件对象
    );
}
